<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <script>

      var  job = {
            workTime : '10:00 -  6:00',
            juli : 5,
            type : [ '轻松', '舒适', '钱多'],
            fn : function (){
                console.log('敲代码');
                
            }
      }


      console.log(job.juli);
      console.log(job['juli']);

      job.fn()
      
      
     var o1 =  new Object ()
     var o2 = {}


     o2.name = '迪丽热巴'
     o2.age = 20
     o2.fn = function (){
         console.log('我是一个演员');
         
     }
     console.log(o2);

     for( k in o2 ){
         console.log(k);
         console.log(o2[k]);
     }

    
    
     </script>
</body>
</html>